<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="../../../lib/html5shiv.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../../lib/respond.min.js?rev=@@hash"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="../../../lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/css/style.css" />
    <link rel="stylesheet" type="text/css" href="../../../ht-css/Project.css" />
    <link rel="stylesheet" type="text/css" href="../../../lib/Validform/5.3.2/style.css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="../../../lib/DD_belatedPNG_0.0.8a-min.js?rev=@@hash"></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../../ht-css/style-q.css" />
    <title>拒收-拦截</title>
</head>
<body>
<nav class="breadcrumb">订单管理 <span class="c-gray en">&gt;</span> 订单查询 <span class="c-gray en">&gt;</span> 拒收-拦截<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<article class="page-container">
  <form class="ml-20 mr-20" id="form-member-add">
    <div class="bg-1 bk-gray pd-20 mb-20">
      <div class="va-m lh-20 f-14 pb-15"><strong>选择拒收商品</strong><a onclick="rejectAll()" class="btn btn-secondary radius size-S ml-20">全部拒收</a><span style="float: right;">从当前数据中检索：<input type="text" oninput="retrievaldatas(this)" class="input-text radius jiansuo" style="width: 110px;"></span></div>
      <div class="mb-50">
        <table class="table table-border table-bordered" id="datatable">
            <thead>
                <tr class="text-c">
                    <th style="width: 300px;">商品</th>
                    <th>发货仓</th>
                    <th>单价</th>
                    <th>购买数量</th>
                    <th>出库数量</th>
                    <th>配送数量</th>
                    <th>可拒收数量</th>
                    <th>拒收数量</th>
                </tr>
            </thead>
            <tbody class="shun"></tbody>
        </table>
          <table class="table table-border table-bordered" id="datatablejk">
              <thead>
              <tr class="text-c">
                  <th style="width: 300px;">商品</th>
                  <th>发货仓</th>
                  <th>单价</th>
                  <th>购买数量</th>
                  <th>出库数量</th>
                  <th>配送数量</th>
                  <th>可拒收数量</th>
                  <th>拒收数量</th>
              </tr>
              </thead>
              <tbody class="shun"></tbody>
          </table>
      </div>
      <div class="clearfix">
        <label class="form-label f-l pt-5"><span class="c-red pr-5">*</span>拒收原因：</label>
        <span class="select-box size-M radius col-xs-8" style="width:200px">
          <select class="select" name="rejectionReason" id="rejectionReason" size="1">
               <option value="51" selected>客户订购错误/计划有变</option>
	           	<option value="52">价格高</option>
	            <option value="53">无法满足到货时效</option>
	            <option value="54">支付问题</option>
	            <option value="55">重复下单</option>
	            <option value="56">暂时不需要了</option>
	            <option value="57">订单信息有误</option>
	            <option value="58">商品缺货/无货</option>
	            <option value="61">商品质量问题</option>
	            <option value="62">价格错误</option>
                <option value="59">其他</option>
          </select>
        </span>
      </div>

      <div class="clearfix mt-20">
        <label class="form-label f-l pt-5"><span class="c-red pr-5">*</span>拒收说明：</label>
        <div class="formControls col-sm-5 pl-10 f-l">
          <textarea name="rejectRemark" class="textarea radius" id="rejectRemark" placeholder="2017-12-12已与客户沟通，货物集齐发" datatype="*1-500" onKeyUp="value=value.replace(/\s+/g,'')"></textarea>
        </div>
          <span class="Validform_checktip"></span>
      </div>
      <div class="clearfix mt-20">
          <label class="form-label f-l pt-5"><span class="c-red pr-5">*</span>联系人：</label>
          <div class="formControls col-xs-2">
            	<input type="text" class="input-text radius" name="received_name" id= "received_name" placeholder="输入联系人" datatype="s" errormsg="输入格式不正确" onKeyUp="value=value.replace(/\s+/g,'')">
          </div>
          <span class="Validform_checktip"></span>
      </div>
      <div class="clearfix mt-20">
          <label class="form-label f-l pt-5"><span class="c-red pr-5">*</span>联系人手机：</label>
          <div class="formControls col-xs-2">
            	<input type="text" class="input-text radius" name="received_telephone" id= "received_telephone" placeholder="输入手机号" datatype="/^[0-9-]{0,20}$/ | /^[0-9]{0,20}$/" errormsg="输入格式不正确" onKeyUp="value=value.replace(/\s+/g,'')">
          </div>
          <span class="Validform_checktip"></span>
      </div>
        <div class="clearfix mt-20" style="display: none">
            <div>退货商品金额：<span id="Return_goods">0</span> 元</div>
            <div>退货商品分摊运费：<span id="Share_freight">0</span> 元</div>
            <div>优惠券分摊金额：<span id="Share_coupon">0</span> 元</div>
            <div>立减分摊：<span id="recoupon">0</span> 元</div>
            <div>积分分摊金额：<span id="integrals">0</span> 元</div>
        </div>
        <div class="clearfix mt-20">
            <label class="form-label f-l pt-5">
                <!--<span class="c-red pr-5">*</span>退运费金额：<span id="return_freight">0</span> 元-->
                <input type="radio" class="return_freight tui" name="return_freight" id="tui_freight" style="margin-left: 10px" onclick="setReturnFreight(1)"><label for="tui_freight" id="tui_freight_lab">退运费</label>
                <input type="radio" class="return_freight notui" name="return_freight" id="notui_freight" style="margin-left: 10px" onclick="setReturnFreight(0)"><label for="notui_freight" id="notui_freight_lab">不退运费</label>
            </label>
        </div>


        <div class="clearfix mt-20" style="display: none">
                开发票状态:<span id="invoicetype"></span>                             
        </div>
        <div class="clearfix mt-20" id="service-fee">
            <label class="form-label f-l pt-5"><span class="c-red pr-5">*</span>服务费：</label>
            <div class="formControls col-xs-2">
                <input type="text" class="input-text radius"  onblur="clearNoNum(this)"  oninput="service(1)"  id="service_fee" name=""  placeholder="输入服务费" datatype="/^[0-9][0-9.]{2,20}$/ | /^[0-9]{1,20}$/" errormsg="输入格式不正确" onKeyUp="value=value.replace(/\s+/g,'')">
            </div>
            <a id="taxdeduction" onclick="Taxdeduction();">扣税</a>
            <span style="color:red;margin-left: 20px;font-size: 5px">
                            *不大于退货商品开票金额的25%</span>
            <span class="Validform_checktip"></span>
        </div>
        <div class="clearfix mt-20" style="display: none">
            <label class="form-label f-l pt-5"><span class="c-red pr-5">*</span>取货收取运费：</label>
            <div class="formControls col-xs-2">
                <input type="text" class="input-text radius" oninput="service(2)" id="freight" name=""  placeholder="输入运费" datatype="/^[0-9][0-9.]{2,20}$/ | /^[0-9]{1,20}$/" errormsg="输入格式不正确" onKeyUp="value=value.replace(/\s+/g,'')">
            </div>
            <span class="Validform_checktip"></span>
        </div>
        <div class="clearfix mt-20" style="display: none">
            <div>应退金额：<span id="refund_amount_final">0</span> 元</div>
        </div>


        <div class="clearfix mt-20">
            <label class="form-label f-l pt-5"><span class="c-red pr-5">*</span>退款备注：</label>
            <div class="formControls col-sm-5 pl-10 f-l">
                <textarea name="rejectRemark" class="textarea radius" id="returnMoneyRemark" placeholder="2017-12-12已与客户沟通，货物集齐发" datatype="*1-500" onKeyUp="value=value.replace(/\s+/g,'')"></textarea>
            </div>
            <span class="Validform_checktip"></span>
        </div>
      <div class="text-c mb-10 mt-30">
        <input name="" type="button" onclick="cancle()" class="btn radius size-M botter mr-20" value="&nbsp;取&nbsp;&nbsp;消&nbsp;">
        <input id="bottm" type="submit" class="btn btn-secondary radius size-M botter " value="&nbsp;提&nbsp;&nbsp;交&nbsp;">
      </div>

    </div>
  </form>
</article>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="../../../lib/jquery/1.9.1/jquery.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/layer/2.4/layer.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../static/h-ui/js/H-ui.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../static/h-ui.admin/js/H-ui.admin.js?rev=@@hash"></script> <!--/_footer 作为公共模版分离出去-->
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="../../../lib/My97DatePicker/4.8/WdatePicker.js?rev=@@hash"></script>
<!--表单验证-->
<script type="text/javascript" src="../../../lib/jquery.validation/1.14.0/jquery.validate.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/jquery.validation/1.14.0/validate-methods.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/jquery.validation/1.14.0/messages_zh.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/datatables/1.10.0/jquery.dataTables.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/laypage/1.2/laypage.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/Validform/5.3.2/Validform_v5.3.2_min.js?rev=@@hash"></script>
<script src="../../../ht-js/public.js?rev=@@hash"></script>
<!--验证token-->
<script src="../../../ht-js/verifyToken.js?rev=@@hash"></script>
<script src="../../../ht-js/Project.js?rev=@@hash"></script>
<script src="../../../ht-js/order/rejectIntercept.js?rev=@@hash"></script>
<script type="text/javascript">
    function cancle () {
        var index = parent.layer.getFrameIndex(window.name);
        parent.layer.close(index);
    }
    $(function(){
        $("#form-member-add").Validform({
            tiptype:2,
            callback:function(form){
                rejectIntercept()
                return false;
            }
        });
    })
</script>
</body>

</html>